package com.whjk.safework.service;
import com.mybatisflex.core.row.Row;

import java.math.BigDecimal;
import java.util.List;

public interface IWorkerService {

    /*
    获取频次 一周一次的
     */
    List<Row> getWorkerWeekRecord(Integer workerId,String month);

    /*获取频次 一月一次的
     */
    List<Row> getWorkerMonthRecord(Integer workerId,String month);

    /*获取频次 一季度一次的
     */
    List<Row> getWorkerQuarterRecord(Integer workerId, String month);

    /*获取频次 一周一次的
     */
    List<Row> getWorkerYearRecord(Integer workerId,String month);

    public List<Row> getWorkerAllYearRecord(Integer workerId, String year);

    public List<Row> getPushWorker();

    public int  addPushRecord(Row row);
    public int addUpdateWorkYearRecord(Integer workerId, Integer year, BigDecimal myscore, BigDecimal leaderScore, BigDecimal averageScore);

    public int addUpdateWorkMonthRecord(Integer workerId, String  month, BigDecimal myscore, BigDecimal leaderScore,BigDecimal averageScore);


    public void refreshWorkerScore(Integer workerId, Integer year);

    public void refreshWorkersMonthSocre(Integer workerId,String month);

    public Row getWorkRecordNum(Integer workerId,String month);

    public List<Row> getWorkerAllrRecord(Integer workerId, String month);

    public List<Row> getWorkerAllRecord(Integer workerId,String month);


}
